package com.hospital.ssm.service.serviceimpl;

import com.hospital.ssm.mapper.HospitalTypeMapper;
import com.hospital.ssm.model.HospitalType;
import com.hospital.ssm.service.HospitalTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class HospitalTypeServiceImpl implements HospitalTypeService {

    @Autowired
    private HospitalTypeMapper hospitalTypeMapper;

    @Override
    public List<HospitalType> hospitalTypeList(Integer id) throws Exception{
        return hospitalTypeMapper.hospitalTypeList(id);
    }

    @Override
    public int hospitalTypeAdd(HospitalType hospitalType) throws Exception {
        return hospitalTypeMapper.hospitalTypeAdd(hospitalType);
    }

    @Override
    public int hospitalTypeDelete(Integer id) throws Exception {
        return hospitalTypeMapper.hospitalTypeDelete(id);
    }

    @Override
    public int hospitalTypeUpdate(HospitalType hospitalType) throws Exception {
        return hospitalTypeMapper.hospitalTypeUpdate(hospitalType);
    }

    @Override
    public int hospitalTypeUpdatehtStatus(HospitalType hospitalType) throws Exception {
        return hospitalTypeMapper.hospitalTypeUpdatehtStatus(hospitalType);
    }


}
